/**
 * Author: Lucky叶.
 * Time: 2016/7/6 0006
 */
angular.module('service.ad_service', [
    "ngResource"
])

//获取商店列表
.service('adService',['$resource',function($resource) {

    //根据服务ID获取具体服务内容
    this.getServiceItem = function(id){

        var item = $resource(server_baseurl+'serviceitem/serviceid/:itemid');
        return item.query({itemid:id});
    }
    //购买
    this.getBuyList = function(bId){
        var buyService = $resource(server_baseurl+'serviceitem/:serviceItemId');
        return buyService.get({serviceItemId:bId});
    }
}])
;